home *** CD-ROM | disk | FTP | other *** search
- Path: nntp1.best.com!usenet
- From: javaprog@best.com (John Lockwood)
- Newsgroups: comp.lang.c++
- Subject: Re: Default Class Initialisation Question...
- Date: Mon, 25 Mar 1996 01:04:13 GMT
- Organization: Best Internet Communications
- Message-ID: <4j4req$lvs@nntp1.best.com>
- References: <00001a81+0000af6f@msn.com>
- NNTP-Posting-Host: javaprog.vip.best.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Tony_Bateman@msn.com (Tony Bateman) wrote:
-
- >Rectangle::Rectangle(USHORT width=0, USHORT height=0):
- >...
- >Fine. But what if I want to leave the width a default value of 0 and
- >set the height to 30. How could I do it?
-
- Well, in general, you can't. You would have to say
-
- Rectangle myRectangle(0, 30);
-
- The default parameter is always the last one.
- Regards,
-
-
-
- John Lockwood
- john@wwg.com
- javaprog@best.com
- http://www.best.com/~javaprog
-
-